/**
 * Created by ${PRODUCT_NAME}.
 * User: skyler
 * Date: 2/23/11
 * Time: 3:12 PM
 * To change this template use File | Settings | File Templates.
 */
package com.thoughtorigin.display.containers {
public class BasicHBox extends Container implements LayoutContainer {

    private var _layoutContainer:LayoutContainer;

    public function BasicHBox() {
        super();

        _layoutContainer = new DefaultLayoutContainer(this);
        _layoutContainer.layoutPolicy = LayoutPolicy.HORIZONTAL_LAYOUT;
    }

    public function set layoutPolicy(value:String):void {
        _layoutContainer.layoutPolicy = value;
    }

    public function set gap(value:Number):void {
        _layoutContainer.gap = value;
    }

    public function set cellWidth(value:Number):void {
        _layoutContainer.cellWidth = value;
    }

    public function set cellHeight(value:Number):void {
        _layoutContainer.cellHeight = value;
    }

    public function set overwritePlacement(value:Boolean):void {
        _layoutContainer.overwritePlacement = value;
    }

    public function refresh():void {
        _layoutContainer.refresh();
    }
}
}
